# Contributor: Hauke Loeffler <alpine@hauke-loeffler.de>
# Maintainer: Hauke Loeffler <alpine@hauke-loeffler.de>
pkgname=rgxg
pkgver=0.1.2
pkgrel=2
pkgdesc="rgxg (ReGular eXpression Generator) is a C library and a command-line tool to generate (extended) regular expressions."
url="https://rgxg.github.io/"
arch="all"
license="Zlib"
makedepends="check-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/rgxg/rgxg/releases/download/v$pkgver/rgxg-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="80fd57a7b38977dba6ab19ed4efc9076e1622daaeb4abf2d2b736287396f07e930dee294dc1f3b19f15d65f540df96bc992b499d0c5ae953cf5a8054f2ad8899  rgxg-0.1.2.tar.gz"
